package com.stroke.util;

import java.awt.*;
import java.util.HashMap;
import java.util.Map;

/**
 * Author: Igor Bubelov
 * Date: 3/7/11 8:53 PM
 */
public class RenderingHintsFactory {
    public static RenderingHints createBest() {
        Map<RenderingHints.Key, Object> hintsConfig = new HashMap<RenderingHints.Key, Object>();

        hintsConfig.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        hintsConfig.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
        hintsConfig.put(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
        hintsConfig.put(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);

        RenderingHints hints = new RenderingHints(hintsConfig);

        return hints;
    }
}
